<h1>My ToDo Lists!</h1>

<h2><%= link_to "Create New List", :action => :add %></h2>
<div>My Lists</div>
<hr>
<%if @lists.length > 0 %>
  <ul class="lists">
  <% for list in @lists -%>
    <li><%= link_to "#{h(list.name).to_s}", :action => :show, :id => list.id %></li>
  <% end %>
  </ul>
<% else %>
  You have not created any lists.
<% end %>
<% if flash[:notice] -%>
  <div id="notice"><%= flash[:notice] %></div>
<% end -%>


